package org.jeecg.modules.hc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.hc.controller.dao.CustomExportXlsDao;
import org.jeecg.modules.hc.entity.HcCompanyFoodOrder;
import org.jeecg.modules.hc.entity.HcMerchant;
import org.jeecg.modules.hc.entity.HcMerchantData;
import org.springframework.web.servlet.ModelAndView;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * @Description: 企业订餐订单
 * @Author: jeecg-boot
 * @Date:   2023-07-11
 * @Version: V1.0
 */
public interface IHcCompanyFoodOrderService extends IService<HcCompanyFoodOrder> {

    Map<String,Object> getGlobalMerchantOrderList(String companyId);

    HcMerchant getGlobalMerchantOrderDetailsList(String merchantId,String companyId);


    String customExportXls(CustomExportXlsDao customExportXlsDao) throws IOException, ParseException;

    HcMerchant getOrderStatistics(String merchantId,String companyId);

    HcCompanyFoodOrder getCompanyOrderLatest(String companyId);

    List<HcMerchantData>  getMerchantDataList(String merchantId, String companyId ) throws ParseException;

    ModelAndView platformExportXls(HcCompanyFoodOrder hcCompanyFoodOrder);

    /**
     * 商家和全局页面导出
     * @param merchantId
     * @param ids
     * @param type
     * @return
     */
    String exportXls(String merchantId,String companyId, List<String> ids, String type);

    void updateByOrderNum();




}
